import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询代码生成测试全部
export const testCodeList = data => {
    return $get('/system/testCode/list', data)
}

// 查询代码生成测试列表
export const testCodePage = data => {
    return $get('/system/testCode/page', data)
}

// 新增代码生成测试
export const testCodeAdd = data => {
    return $post('/system/testCode/add', data)
}

// 查询代码生成测试详情
export const testCodeDetail = id => {
    return $get('/system/testCode/detail/'+ id)
}

// 更新代码生成测试
export const testCodeUpdate = data => {
    return $post('/system/testCode/update', data)
}

// 删除代码生成测试
export const testCodeDelete = id => {
    return $post('/system/testCode/delete/'+ id)
}

// 导出代码生成测试
export const testCodeExport = (data,fileName) => {
    return $download('/system/testCode/export',data, fileName)
}
